#include "LogerLocator.h"
#include "LibLogerImpl.h"

AbstractLoger* LogerLocator::m_pLoger=0;

LogerLocator::LogerLocator(void)
{

}

LogerLocator::~LogerLocator(void)
{
	if (m_pLoger!=0)
	{
		delete m_pLoger;
		m_pLoger=0;
	}
}

AbstractLoger* LogerLocator::GetLoger()
{
	if (m_pLoger == NULL)
	{
		m_pLoger=new LibLogerImpl();
	}
	
	return m_pLoger;
}
